package com.jinsilu.freight.http.request;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;

/**
 * author : byd
 * time   : 2019/12/07
 * desc   : 判断手机号是否满足更换
 */
public final class ConditionApi implements IRequestApi, IRequestType {

    /**
     * 手机号
     */
    private String phone;

    public ConditionApi setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    @Override
    public String getApi() {
        return "api/change/phone/condition";
    }

    @Override
    public BodyType getType() {
        return BodyType.FORM;
    }
}